#include "GameEngine.h"
#include "TestState.h"
#include "IntroState.h"

//program main function
int main(int argc, char* argv[]){

    //use the test window
    //test();

    //create an app instance
    //App game;

    //run the app
    //return game.OnExecute();

    GameEngine game;

	// initialize the engine
	game.Init();

	// load a state
	game.ChangeState( IntroState::Instance() );
	//game.ChangeState( TestState::Instance() );

	// main loop
	while ( game.Running() )
	{
		game.Events();
		game.Update();
		game.Render();
	}

	// cleanup the engine
	game.Cleanup();

	return 0;
}
